<?php

namespace app\common\controller;

//use think\App;
use app\BaseController;
use think\facade\Console;

class DoConsole extends BaseController
{
    /**
     * 导入
     */
    public function import($commandId)
    {
        //$output = Console::call('action', [$commandId]);
        trace('[' . date('Y-m-d H:i:s') . '] import begin: ', 'log');
        exec("php think action {$commandId}");
    }

//    public function execImport()
//    {
//        trace('[' . date('Y-m-d H:i:s') . '] execImport begin: ', 'log');
//    }
}
